import React from 'react';
import ReactDOM from 'react-dom';
import './06props.css'

let arr = ['小马','小黑','小白'];
let arrHtml = [<li>小马</li>,<li>小黑</li>,<li>小白</li>]
class Welcome extends React.Component{
  constructor(props){
    super(props)
  }
  render(){
    return(
      <div>
        <ul>
          {arr}
          {arrHtml}
        </ul>
      </div>
    )
  }
}
  
 

  ReactDOM.render(
    <Welcome /> ,
    document.querySelector('#root')
  )

    // console.log(new Date()); 不会初始化
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA

